package com.imooc.reader.service;

import com.imooc.reader.entity.Evaluation;
import com.imooc.reader.entity.Member;
import com.imooc.reader.entity.MemberReadState;

import java.util.Map;

public interface MemberService {
    //会员注册 创建新的会员
    public Member createMember(String username, String password, String nickname);

    //检查登录
    public Member checkLogin(String username, String password);

    //根据用户和图书编号查找阅读状态
    public MemberReadState selectMemberReadState(Long memberId, Long bookId);

    //更新阅读状态
    public MemberReadState updateMemberReadState(Long memberId, Long bookId,Integer readState);

    //写短评
    public Evaluation evaluate(Long memberId, Long bookId,Integer score,String content);

    //点赞
    public Evaluation enjoy(Long evaluationId);

}
